package com.awakening.o2o.web.shopadmin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 主要用来解析路由并转发到相应的html中
 * @Author:这个程序员有纹身
 * @Date: Created in 20:56 2018\1\6 0006
 */
@Controller
@RequestMapping(value = "/shopadmin",method = {RequestMethod.GET})
public class shopAdminController {

    //转发至店铺信息添加、修改
    @RequestMapping(value = "/shopoperation")
    public String shopOperation(){
        return "shop/shopoperation";
    }

    //转发至店铺列表页面
    @RequestMapping(value = "/shoplist")
    public String shopList(){
        return "shop/shoplist";
    }

    //转发至店铺管理页面
    @RequestMapping(value = "/shopmanagement")
    public String shopManagement(){
        return "shop/shopmanagement";
    }

    //转发至商品类别管理页面
    @RequestMapping(value = "/productcategorymanage",method = RequestMethod.GET)
    public String productCategoryManage(){
        return "shop/productcategorymanagement";
    }

    //转发至商品添加、编辑
    @RequestMapping(value = "/productoperation")
    public String productOperation(){
        return "shop/productoperation";
    }

    //转发至商品列表
    @RequestMapping(value = "/productmanagement")
    public String productManagement(){
        return "shop/productmanagement";
    }

    //转发至奖品管理
    @RequestMapping(value = "/awardmanagement")
    public String awardManagement(){
        return "shop/awardmanagement";
    }

    //转发至消费记录
    @RequestMapping(value = "/productbuycheck")
    public String productBuyCheck(){
        return "shop/productbuycheck";
    }

    //转发至积分兑换
    @RequestMapping(value = "/awarddelivercheck")
    public String awardDeliverCheck(){
        return "shop/awarddelivercheck";
    }

    //转发至顾客积分
    @RequestMapping(value = "/usershopcheck")
    public String userShopCheck(){
        return "shop/usershopcheck";
    }

    //转发至授权管理
    @RequestMapping(value = "/shopauthmanagement")
    public String shopAuthManagement(){
        return "shop/shopauthmanagement";
    }

    //转发至授权信息修改页面
    @RequestMapping(value = "/shopauthedit")
    public String shopAuthEdit(){
        return "shop/shopauthedit";
    }
}
